<?php
/**
 * form.php
 * @author ranuandra
 *
 * 9 Agu 2011 13:09:37
 *
 * 
 */
?>
	<div id="wrapper">
	<div class="form-container">
		<?php echo Form::open(URL::base().'menu/save', array('class' => 'formdata', 'targetdata' => '.form', 'targeturl' => 'menu')); ?>
		<div class="form_description">
			<h2>
			<?php 
			if(isset($title))
			{
				echo $title;
			}
			?>
			</h2>
			<p>
			<?php 
			if(isset($desc))
			{
				echo $desc;
			}
			?>
			</p>
		</div>	
		
		<fieldset>
			<legend>Menu</legend>	
			<div><label for="menu">Nama Menu </label> 						
			<?php 
				echo Form::input('menu_name', $form['menu_name'], array());
			?>
			</div>
			<div><label for="controller">Controller </label> 						
			<?php 
				echo Form::input('controller', $form['controller'], array());
			?>
			</div>		
		</fieldset>				
	<div class="buttonrow">
		<input type="submit" value="Save" class="button" />
		<input type="button" value="Discard" class="button" />
	</div>
<?php 
	Form::close();
?>
	</div>
	</div>
	
